
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <title>Swiper demo</title>
    <meta
      name="viewport"
      content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1"
    />
    <!-- Link Swiper's CSS -->
  <link
      rel="stylesheet"
      href="../css/xiaolunbo.css"
    />
 
    <style type="text/css">
        .swiper{
          --swiper-theme-color: #999999;/* 设置Swiper风格 */
          --swiper-navigation-color: #666666;/* 单独设置按钮颜色 */
          --swiper-navigation-size: 20px;/* 设置按钮大小 */
        }
      </style>
    <!-- Demo styles -->
    <style>

      body {
        background: #eee;
        font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
        font-size: 14px;
        color: #000;
        margin: 0;
        padding: 0;
      }

      .swiper {
        width: 100%;
        height: 100%;
      }

      .swiper-slide {
        text-align: center;
        font-size: 18px;
        background: #fff;

        /* Center slide text vertically */
        display: -webkit-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        -webkit-justify-content: center;
        justify-content: center;
        -webkit-box-align: center;
        -ms-flex-align: center;
        -webkit-align-items: center;
        align-items: center;
      }

      .swiper-slide img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
    </style> 
  </head>

  <body>
    <!-- Swiper -->
    <div class="swiper mySwiper">
      <div class="swiper-wrapper">
        <div class="swiper-slide"><img src="https://gw.alicdn.com/tfs/TB1x7TyENYaK1RjSZFnXXa80pXa-502-380.jpg_290x10000Q75.jpg_.webp" alt=""></div>
        <div class="swiper-slide"><img src="https://gw.alicdn.com/tfs/TB1IQPsEFzqK1RjSZFoXXbfcXXa-502-380.jpg_290x10000Q75.jpg_.webp" alt=""></div>
        <div class="swiper-slide"><img src="https://gw.alicdn.com/tfs/TB1jq1HekvoK1RjSZPfXXXPKFXa-502-380.jpg_290x10000Q75.jpg_.webp" alt=""></div>
        <div class="swiper-slide"><img src="https://gw.alicdn.com/tfs/TB1NASFejDpK1RjSZFrXXa78VXa-502-380.jpg_290x10000Q75.jpg_.webp" alt=""></div>
        <div class="swiper-slide"><img src="https://gw.alicdn.com/tfs/TB1xwW3eiLaK1RjSZFxXXamPFXa-502-380.jpg_290x10000Q75.jpg_.webp" alt=""></div>
        <div class="swiper-slide"><img src="https://gw.alicdn.com/tfs/TB1Cq1HekvoK1RjSZPfXXXPKFXa-502-380.jpg_290x10000Q75.jpg_.webp" alt=""></div>
        <div class="swiper-slide"><img src="https://gw.alicdn.com/imgextra/i3/700459267/O1CN01ga1mwD2IKL2CVvDC1_!!700459267.png_290x10000.jpg_.webp" alt=""></div>
        <div class="swiper-slide"><img src="https://gw.alicdn.com/tfs/TB1sQTyENYaK1RjSZFnXXa80pXa-502-380.jpg_290x10000Q75.jpg_.webp" alt=""></div>
      </div>
      <div class="swiper-button-next"></div>
      <div class="swiper-button-prev"></div>
      <div class="swiper-pagination"></div>
    </div>

    <!-- Swiper JS -->
<script src="../js/xiaolunbo.js"></script> 

    <!-- Initialize Swiper -->
</script>

    <script>

 var swiper = new Swiper(".mySwiper", {
        slidesPerView: 2,
        spaceBetween: 10,
        slidesPerGroup: 2,
        autoplay:true,
        loop: true,
        loopFillGroupWithBlank: true,
        pagination: {
          el: ".swiper-pagination",
          clickable: true,
        },
        navigation: {
          nextEl: ".swiper-button-next",
          prevEl: ".swiper-button-prev",
        },
     
      }); 
    </script>
  </body>
</html>
